//
//  HomeTableViewCell.m
//  随拍
//
//  Created by lanou3g on 16/1/18.
//  Copyright © 2016年 Ashoka. All rights reserved.
//

#import "HomeTableViewCell.h"

@implementation HomeTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addView];
    }
    return self;
}
-(void)addView{
    //图片
    self.homeImg = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 414, 211)];
    
    [self.contentView addSubview:self.homeImg];
    self.hometitle = [[UILabel alloc] initWithFrame:CGRectMake(120, 80, 170, 40)];
    
    
    self.hometitle.textColor = [UIColor whiteColor];
    self.hometitle.numberOfLines = 0;
    
    //    self.hometitle.backgroundColor = [UIColor lightGrayColor];
    
    [self.homeImg addSubview:self.hometitle];
    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
